Teams
The Character Meta for the Teams Module.
Functions
characterMeta:WhitelistAllClasses()
Whitelists all classes for the character.
characterMeta:WhitelistAllFactions()
Whitelists all factions for the character.
characterMeta:WhitelistEverything()
Whitelists everything (all classes and factions) for the character.
characterMeta:classUnWhitelist(class)
Removes the whitelist for a specific class from the character.
Parameters
-
class
Integer
The class to remove the whitelist status for.
characterMeta:classWhitelist(class)
Whitelists the character for a specific class.
Parameters
-
class
Integer
The class to whitelist the character for.
characterMeta:hasClassWhitelist(class)
Checks if the player has whitelisted access to a class.
Parameters
-
class
Integer
The class to check for whitelisting.
Returns
-
bool
Whether the player has whitelisted access to the specified faction.
characterMeta:isClass(class)
Checks if the player belongs to the specified class.
Parameters
-
class
String
The class to check against.
Returns
-
bool
Whether the player belongs to the specified class.
characterMeta:isFaction(faction)
Checks if the player belongs to the specified faction.
Parameters
-
faction
String
The faction to check against.
Returns
-
bool
Whether the player belongs to the specified faction.
characterMeta:joinClass(class, isForced)
Sets the character's class to the specified class.
Parameters
-
class
String
The class to join.
-
isForced
Boolean
default: false
Whether to force the character to join the class even if conditions are not met.
Returns
-
any
bool Whether the character successfully joined the class.
Example Usage
local success = character:joinClass("some_class")
characterMeta:kickClass()
Kicks the character from their current class and joins them to the default class of their faction.
Example Usage
character:kickClass()